package com.aiti.lulian.service.impl;

import com.aiti.base.core.base.service.iml.BaseSerivceImpl;
import com.aiti.lulian.entity.LuLianSupplierSignUp;
import com.aiti.lulian.mapper.LuLianSupplierSignUpMapper;
import com.aiti.lulian.service.ILuLianRecruitmentService;
import com.aiti.lulian.service.ILuLianSupplierInquiryOrderService;
import com.aiti.lulian.service.ILuLianSupplierSignUpService;
import com.aiti.lulian.service.IShowSupplierSignUpFileService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class LuLianSupplierSignUpServiceImpl extends BaseSerivceImpl<LuLianSupplierSignUpMapper, LuLianSupplierSignUp> implements ILuLianSupplierSignUpService {

    @Autowired
    private IShowSupplierSignUpFileService supplierSignUpFileService;

    @Autowired
    private ILuLianSupplierInquiryOrderService supplierInquiryOrderService;

    @Autowired
    private ILuLianRecruitmentService recruitmentService;

    @Autowired
    private LuLianSupplierSignUpMapper supplierSignUpMapper;

    @Override
    public Map<String, Object> querySignUpListPage(Page<LuLianSupplierSignUp> page, String userId, String orderName) {
        Map<String, Object> map = new HashMap<>();

        List<LuLianSupplierSignUp> signUpList = supplierSignUpMapper.querySignUpListPage(page, userId, orderName);

        map.put("total", page.getTotal());
        map.put("list", signUpList);

        return map;
    }
}